import React from 'react';
import { EchartsComp } from './echarts';
import { DeviationTariff, DeductionIncome, DeductionPrice } from './helper';

export function ChartDealTariff({ data = {}, scale = 1, getRef = () => {} }) {
  return <EchartsComp config={DeviationTariff(data, scale)} getRef={getRef} />;
}
export function ChartDealIncome({ data = {}, scale = 1, getRef = () => {} }) {
  return <EchartsComp config={DeductionIncome(data, scale)} getRef={getRef} />;
}
export function ChartDealPrice({ data = {}, scale = 1, getRef = () => {} }) {
  return <EchartsComp config={DeductionPrice(data, scale)} getRef={getRef} />;
}
